/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alias;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Пользователь
 */
public class InputReadParse {

    private static String inputInteger() {

        char[] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'j', 'h', 'j', 'k', 'l', 'm', 'n',
            'm', 'o', 'p', 'q', 'r', 's', 't', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E',
            'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'W',
            'X', 'Y', 'Z', '/', '*', '-', '+', '=', ')', '(', ')', '{', '}', '?', '>', '<',
            ':', ';', ' ', ']', '[', '|', '!', '@', '#', '$', '%', '^', '&', '.'};
        BufferedReader input;
        input = new BufferedReader(new InputStreamReader(System.in));
        String line = null;
        char[] character;
        boolean isNeedVerify = true;
        short flag = 1;
        while (isNeedVerify == true) {
            try {
                line = input.readLine();
            } catch (IOException ex) {
                Logger.getLogger(DealingProgram.class.getName()).log(Level.SEVERE, null, ex);
            }
            character = line.toCharArray();
            for (int i = 0; i < character.length; i++) {
                for (int k = 0; k < letters.length; k++) {
                    if (character[i] == letters[k]) {
                        flag = 0;
                        i = character.length;
                        k = letters.length;
                    } else {
                        flag = 1;
                    }
                }
            }
            if (flag == 1) {
                isNeedVerify = false;
            } else {
                System.out.println("No such parameter");

            }
        }

        return line;
    }

    private static String input() {
        BufferedReader input;
        input = new BufferedReader(new InputStreamReader(System.in));
        String line = null;
        try {
            line = input.readLine();
        } catch (IOException ex) {
            Logger.getLogger(DealingProgram.class.getName()).log(Level.SEVERE, null, ex);
        }
        return line;
    }

    public String getInput() {
        return input();
    }

    public String getParsedInput() {
        return inputInteger();
    }
}
